package com.ruoyi.gaokao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gaokao.mapper.GkMiddleSchoolMapper;
import com.ruoyi.gaokao.domain.GkMiddleSchool;
import com.ruoyi.gaokao.service.IGkMiddleSchoolService;

/**
 * 中学基本信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-07-07
 */
@Service
public class GkMiddleSchoolServiceImpl implements IGkMiddleSchoolService 
{
    @Autowired
    private GkMiddleSchoolMapper gkMiddleSchoolMapper;

    /**
     * 查询中学基本信息
     * 
     * @param name 中学基本信息主键
     * @return 中学基本信息
     */
    @Override
    public GkMiddleSchool selectGkMiddleSchoolByName(String name)
    {
        return gkMiddleSchoolMapper.selectGkMiddleSchoolByName(name);
    }

    //selectGkMiddleSchoolAll
    @Override
    public List<GkMiddleSchool> selectGkMiddleSchoolAll()
    {
        return gkMiddleSchoolMapper.selectGkMiddleSchoolAll();
    }


    /**
     * 查询中学基本信息列表
     * 
     * @param gkMiddleSchool 中学基本信息
     * @return 中学基本信息
     */
    @Override
    public List<GkMiddleSchool> selectGkMiddleSchoolList(GkMiddleSchool gkMiddleSchool)
    {
        return gkMiddleSchoolMapper.selectGkMiddleSchoolList(gkMiddleSchool);
    }

    /**
     * 新增中学基本信息
     * 
     * @param gkMiddleSchool 中学基本信息
     * @return 结果
     */
    @Override
    public int insertGkMiddleSchool(GkMiddleSchool gkMiddleSchool)
    {
        return gkMiddleSchoolMapper.insertGkMiddleSchool(gkMiddleSchool);
    }

    /**
     * 修改中学基本信息
     * 
     * @param gkMiddleSchool 中学基本信息
     * @return 结果
     */
    @Override
    public int updateGkMiddleSchool(GkMiddleSchool gkMiddleSchool)
    {
        return gkMiddleSchoolMapper.updateGkMiddleSchool(gkMiddleSchool);
    }

    /**
     * 批量删除中学基本信息
     * 
     * @param names 需要删除的中学基本信息主键
     * @return 结果
     */
    @Override
    public int deleteGkMiddleSchoolByNames(String[] names)
    {
        return gkMiddleSchoolMapper.deleteGkMiddleSchoolByNames(names);
    }

    /**
     * 删除中学基本信息信息
     * 
     * @param name 中学基本信息主键
     * @return 结果
     */
    @Override
    public int deleteGkMiddleSchoolByName(String name)
    {
        return gkMiddleSchoolMapper.deleteGkMiddleSchoolByName(name);
    }
}
